package com.yuecai.modules.yc_user.service.dto;


import com.yuecai.modules.yc_real_name.domain.YcRealName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.Instant;

@Data
public class YcUserRegisterDto {


    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "手机号不能为空")
    private String phone;


    private String imgUrl;

    @NotNull(message = "推荐人不能为空")
    private String pid;


    private Integer state;


    private Instant createTime;


    private Instant lastUpdateTime;


    private String nickName;


    private Boolean sex;


    private Instant birthday;


    private String city;


    private String occupation;


    private String sign;


    private Instant lastLoginTime;


    private Integer level;

    @NotNull(message = "类型不能为空")
    private Integer type;

    private boolean realName;

    private YcRealName ycRealName;
}
